<?php /* Smarty version 2.6.26, created on 2014-01-21 14:58:24
         compiled from record.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main fn-clear">
	<div class="my-title">
    	<h1>交易记录<span><a href="index.php?c=index&a=balance_detail">收支明细</a></span></h1>
        <form id="record_form">
        <p>交易状态：<select name="status">
            <option value="">交易状态---</option>
          <option value="15">交易成功</option>
          <option value="14">等待确认收货</option>
          <option value="3">等待卖家发货</option>
          <option value="0">等待买家付款</option>
      </select>&nbsp;&nbsp;&nbsp;&nbsp;交易时间：<input name="trade_time_start" type="text" id="trade_time_start">&nbsp;&nbsp;到&nbsp;&nbsp;<input name="trade_time_end" type="text" id="trade_time_end">&nbsp;&nbsp;商户名称：<input name="seller_name" type="text">&nbsp;&nbsp;交易名称：<input name="goods_name" type="text">&nbsp;&nbsp;<input type="hidden" id="record_type" value="trade"><input class="search" id="record_search" name="" type="button" value="查询"></p></form>
        <div class="action">可用余额：<em><?php echo $this->_tpl_vars['user_info']['vcount']; ?>
</em>元</div>
    </div>
    <div class="list-box">
    	<table>
            <tbody>
            	<tr class="title">
                    <td>订单号</td>
                	<td class="time">创建时间</td>
                	<td class="name">交易名称</td>
                	<td class="from">商户</td>
                	<td class="amount">金额</td>
                	<td class="payment">状态</td>
                	<td class="detail">操作</td>
                </tr>
                <?php $_from = $this->_tpl_vars['rs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['re']):
?>
            	<tr>
                    <td><?php echo $this->_tpl_vars['re']['order_sn_main']; ?>
</td>
                	<td class="time"><?php echo $this->_tpl_vars['re']['add_time']; ?>
</td>
                	<td class="name"><a href="http://www.ppsc.com.cn/product-<?php echo $this->_tpl_vars['re']['goods_id']; ?>
.html" target="_blank"><?php echo $this->_tpl_vars['re']['goods_name']; ?>
</a></td>
                	<td class="from"><a href="http://www.ppsc.com.cn/store-<?php echo $this->_tpl_vars['re']['seller_id']; ?>
-39.html" target="_blank"><?php echo $this->_tpl_vars['re']['seller_name']; ?>
</a></td>
                	<td class="amount"><?php if (( $this->_tpl_vars['re']['b_type'] == 0 ) && ( $this->_tpl_vars['re']['pay_status'] != 0 )): ?><span class="pay-in">+<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php elseif (( $this->_tpl_vars['re']['b_type'] == 1 ) && ( $this->_tpl_vars['re']['pay_status'] != 0 )): ?><span class="pay-out">-<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php else: ?><span class="pay-un">-<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php endif; ?></td>
                	<td class="payment"><?php if ($this->_tpl_vars['re']['pay_status'] == 0): ?>未支付<?php else: ?><?php echo $this->_tpl_vars['conf'][$this->_tpl_vars['re']['status']]['ch_name']; ?>
<?php endif; ?></td>
                	<td class="detail">
					<?php if ($this->_tpl_vars['re']['myself'] == 1): ?><a href="http://www.ppsc.com.cn/index.php?app=member.member_order&act=detail&id=<?php echo $this->_tpl_vars['re']['order_sn_main']; ?>
&uid=<?php echo $this->_tpl_vars['re']['buyer_id']; ?>
&order_time=&ret_page=1" target="_blank">查看</a><?php else: ?>销售订单请到后台查看<?php endif; ?></td>
                </tr>
            	<?php endforeach; endif; unset($_from); ?>
            </tbody>
            <tfoot>
            	<tr>
                	<td colspan="7">
                	<?php echo $this->_tpl_vars['page_str']; ?>

                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>